package com.nervenets.web.hibernate.domain.news;

import com.nervenets.web.enumeration.NewsType;
import com.nervenets.web.hibernate.DomainObject;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class News extends DomainObject {
    @ApiModelProperty(value = "团队ID")
    private long managerId;
    @ApiModelProperty(value = "资讯类型")
    private NewsType type = NewsType.none;
    @ApiModelProperty(value = "资讯标题")
    private String title;
    @ApiModelProperty(value = "资讯内容")
    @Column(columnDefinition = "text")
    private String content;
}
